﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Photo.aspx.cs" Inherits="Photography.Admin.Photo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table border="1">
        <tr>
            <td colspan="2">
                <%if (!Master.PhotoId.HasValue)
                  {%>Add New Photo<%}
                  else
                  { %>Edit Photo<%} %>
            </td>
        </tr>
        <tr>
            <td>
                Title
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtTitle" Width="326px" />
            </td>
        </tr>
        <tr>
            <td>
                Description
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtDescription" Height="72px" TextMode="MultiLine"
                    Width="326px" />
            </td>
        </tr>
        <%if (!Master.PhotoId.HasValue)
          {%><tr>
              <td>
              </td>
              <td>
                  <asp:CheckBox ID="chkSlideShow" runat="server" Text="Show on slide show" />
              </td>
          </tr>
        <%
          }%>
        <%if (!Master.PhotoId.HasValue)
          {%><tr>
              <td>
                  URL
              </td>
              <td>
                  <asp:TextBox runat="server" ID="txtLocation" Width="326px" />
              </td>
          </tr>
        <%
          }%>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button runat="server" ID="btnSave" Text="Add External Photo" OnClick="btnSave_Click" />
            </td>
        </tr>
        <%if (!Master.PhotoId.HasValue)
          {%><tr>
              <td>
                  Or Upload
              </td>
              <td>
                  <asp:FileUpload ID="fileNewPhoto" runat="server" Width="323px" />
              </td>
          </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button runat="server" ID="btnUpload" Text="Upload and Add Photo" OnClick="btnUpload_Click" />
            </td>
        </tr>
        <%
          }%>
    </table>
</asp:Content>
